<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<link rel="stylesheet" href="style/normal.css" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset={$charset}" />
<title> {$smarty.const.LA_RATE}</title>
</head>
<body topmargin="10" leftmargin="10" bgcolor="#FFFFFF" marginwidth="10" marginheight="10">

{if $rate_ok}
	<table border="0" width="100%" cellspacing="1" cellpadding="0" bgcolor="#C8D3E5">
	  <tr>
	    <td width="100%">
	      <table border="0" width="100%" cellspacing="0" cellpadding="8">
	        <tr>
	          <td width="100%">
	          
	          <b>{$smarty.const.LA_THANKS}</b></td>
	        </tr>
	      </table>
	    </td>
	  </tr>
	  <tr>
	    <td width="100%">
	      <table border="0" width="100%" cellspacing="0" cellpadding="8" bgcolor="#FFFFFF">
	       
	      <tr><td>{$smarty.const.LA_VOTED}</td></tr>  
	       <tr>
	          <td width="100%" align="right"><a href="javascript:window.close();"><img src="layout_images/noimage.gif" width="16" height="15" border="0" align="absmiddle">{$smarty.const.LA_CLOSE}</a>
	          </td>
	        </tr>
	      </table>
	    </td>
	  </tr>
	</table>
{elseif $rate_fail}
	<table border="0" width="100%" cellspacing="1" cellpadding="0" bgcolor="#C8D3E5">
	  <tr>
	    <td width="100%">
	      <table border="0" width="100%" cellspacing="0" cellpadding="8">
	        <tr>
	          <td width="100%">
	          
	          <b>{$smarty.const.LA_THANKS}</b></td>
	        </tr>
	      </table>
	    </td>
	  </tr>
	  <tr>
	    <td width="100%">
	      <table border="0" width="100%" cellspacing="0" cellpadding="8" bgcolor="#FFFFFF">
	      
	      <tr><td> {if $rate_fail=="1"}
	      {$smarty.const.LA_ALREADY_VOTED}
	      {else if $rate_fail=="2"}
	      {$smarty.const.LA_VOTE_ON_YOURSELF}
	      {/if}

	      </td></tr>
	      
	      <tr>
	          <td width="100%" align="right"><a href="javascript:window.close();"><img src="layout_images/noimage.gif" width="16" height="15" border="0" align="absmiddle">{$smarty.const.LA_CLOSE}</a>
	          </td>
	        </tr>
	      </table>
	    </td>
	  </tr>
	</table>


{else}
<form method="post" action="rate.php">
<input type="hidden" name="id" value="{$id}">


<table border="0" width="100%" cellspacing="1" cellpadding="0" bgcolor="#C8D3E5">
<tr>
    <td width="100%">
      
    	<table border="0" width="100%" cellspacing="0" cellpadding="8">
        <tr>
          <td width="100%"><b>
          {$ad_rate_info}
        	</td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td width="100%">
      <table border="0" width="100%" cellspacing="0" cellpadding="8" bgcolor="#FFFFFF">
        <tr>
          <td width="100%">
 {$smarty.const.LA_GRADES}<br /><br />
{$smarty.const.LA_GRADE}:
 <select name="grade">
    <option>1</option>
    <option>2</option>
    <option>3</option>
    <option>4</option>
    <option selected>5</option>
    <option>6</option>
    <option>7</option>
    <option>8</option>
    <option>9</option>
    <option>10</option>
    </select>
          </td>
        </tr>
         <tr>
          <td width="100%">
          <input type="submit" value="{$smarty.const.LA_RATE}" name="submit" class="whitebtn">
          <p>&nbsp;</p>
          <u>{$smarty.const.LA_CURR_GRADE}</u>:<br />
          {if !$cur_grade}
          	{$smarty.const.LA_NO_VOTES}
          {else} 
          	{$smarty.const.LA_GRADE_IS} <b>{$cur_grade}</b> {$smarty.const.LA_AFTER} {$ad_voters} {$smarty.const.LA_VOTERS_HAVE}
		  {/if}
          </td>
        </tr>
        <tr>
          <td width="100%" align="right">
 <a href="javascript:window.close();"><img src="layout_images/noimage.gif" width="16" height="15" border="0" align="absmiddle">{$smarty.const.LA_CLOSE}</a>


{/if}

 </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<input type="hidden" name="id" value="{$id}">
</form>



</body></html>